package org.example.demo1startjava17.demo.demo;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class MyClass1 extends MyClass0 implements InitializingBean {

    @Override
    public void afterPropertiesSet() throws Exception {
        list = new ArrayList<>();
        list.add("111");
        list.add("222");
        list.add("333");
    }
}
